package com.ai.planttrees.model;

import java.util.Date;
import javax.persistence.*;

@Table(name = "plant_record")
public class PlantRecord {
    @Id
    private String id;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "plant_id")
    private Integer plantId;

    @Column(name = "plant_time")
    private Date plantTime;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return user_id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * @return plant_id
     */
    public Integer getPlantId() {
        return plantId;
    }

    /**
     * @param plantId
     */
    public void setPlantId(Integer plantId) {
        this.plantId = plantId;
    }

    /**
     * @return plant_time
     */
    public Date getPlantTime() {
        return plantTime;
    }

    /**
     * @param plantTime
     */
    public void setPlantTime(Date plantTime) {
        this.plantTime = plantTime;
    }

    @Override
    public String toString() {
        return "PlantRecord{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", plantId=" + plantId +
                ", plantTime=" + plantTime +
                '}';
    }
}